{
	name:"Pen",
	tool:"./paint_tool/pen.shape",
	onInit(){
		this.stepSize=2
	},
	onClick(pos){
		let step = this.step
			step.push(pos)

		if(step.length>=this.stepSize)
			this.commit(this.name)
	},
	onMousemove(pos){
		if(this.step.length>0){
			this.step.push(pos)
			this.refresh()
		}
	},
	getPoints(ps){return ps}
}
